﻿@{
    ViewBag.Title = "新账号配置页面";
    Layout = "~/Views/Shared/IniterBaseView.cshtml";
}
<script type="text/javascript">
    function Delete(id) {
        if (confirm("确定要删除小组吗？")) {
            location.href = "/GroupShow/Delete/" + id;
        }
    }

    function Edit(id) {
        location.href = "/GroupShow/Edit/" + id;
    }
</script>
<div style="height: 40px; width: 100%; line-height: 40px;">
    <p>
        &nbsp;
    </p>
</div>
<div style="font-size: 22pt; text-align: center;">
    权限管理<span style="font-size: 9pt;"> 确认</span></div>
<div id="bigDataBox">
    <form method="post" action="" id="form1">
    <div style="height: 20px; width: 80%; line-height: 20px; text-align: right; float: none;">
    </div>
    <div style="width: 100%; text-align: center; padding-left: 10%;">
        <table style="width: 80%;" class="list">
            <tr>
                <td class="title">
                    用户姓名
                    <input type="hidden" name="id" value="@ViewBag.op.Id" />
                </td>
                <td class="title">
                    用户角色
                </td>
            </tr>
            <tr>
                <td>
                    @ViewBag.op.UName
                </td>
                <td>
                    @foreach (Common.Module.Permissions.Model.T_GroupManager gm in ViewBag.gms)
                    {
                        bool exist = false;
                        foreach (Common.Module.Permissions.Model.T_MasterGroup mg in ViewBag.groups)
                        {
                            if (mg.GroupId == gm.Id)
                            {
                                exist = true;
                            }
                        }
                        if (exist)
                        {
                        <input type="checkbox" name="groups" checked="checked" value="@gm.Id" />@gm.GroupName
                        }
                        else
                        {
                        <input type="checkbox" name="groups"  value="@gm.Id"/>@gm.GroupName
                        }

                    }
                </td>
            </tr>
        </table>
    </div>
    <div style="height: 10px; line-height: 10px;">
    </div>
    <div style="text-align: right; padding-right: 30px;">
        <input type="submit" class="button1" value="保存" />&nbsp;&nbsp;&nbsp;&nbsp;<input
            type="button" class="button1" value="返回" onclick="javascript:history.go(-1)" />
    </div>
    </form>
    <div style="height: 20px; width: 100%; line-height: 20px;">
        <p>
            &nbsp;
        </p>
    </div>
    <div style="font-size: 16pt; text-align: center;" class="list">
        <span>@Html.ActionLink("返回", "PowerManager", "Init", null, null)</span></div>
    <div style="height: 40px; width: 100%; line-height: 40px;">
        <p>
            &nbsp;
        </p>
    </div>
</div>
